import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
//import  './elementUI';按需导入组件
import ElementUI from 'element-ui';
import 'normalize.css/normalize.css'// 优化css样式
import 'element-ui/lib/theme-chalk/index.css';
import '@/styles/element-variables.scss'
import '@/styles/index.scss' // 全局 css
import './icons' // icon
import './permission' // 权限控制
import * as filters from './filters' // 全局过滤器
Vue.use(ElementUI);


// 全局注册 filters
Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
})
Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
